package cc.geguo.smartcan.service.impl;

import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.List;
import cc.geguo.smartcan.pojo.Supplier;
import cc.geguo.smartcan.mapper.SupplierDao;

@Service
public class SupplierService{

    @Resource
    private SupplierDao supplierDao;

    public int insert(Supplier pojo){
        return supplierDao.insert(pojo);
    }

    public int insertSelective(Supplier pojo){
        return supplierDao.insertSelective(pojo);
    }

    public int insertList(List<Supplier> pojos){
        return supplierDao.insertList(pojos);
    }

    public int update(Supplier pojo){
        return supplierDao.update(pojo);
    }
}
